<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var n = prompt('input a number'), 
        n2 = prompt('input another number');
        if (n % 2 === 0 && n2 % 2 === 0 || n % 2 !== 0 && n2 % 2 !== 0) {
            alert('hello 这两个数字的奇偶性相同')
        } else {
            alert('hello 这两个数字的奇偶性不同')
        }
    </script>
</body>
</html>